implement stack by using queue